//
//  LYTestCell.m
//  artist
//
//  Created by Jay_Apple on 16/5/19.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import "LYTestCell.h"
#import "LYVideoModel.h"

@implementation LYTestCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


- (void)setModel:(LYOptionsModel *)model{

    self.textLabel.text = [NSString stringWithFormat:@"%@  %@",model.label,model.option];
    
    switch (model.result) {
        case testResultNormal:
            self.contentView.backgroundColor = [UIColor whiteColor];
            break;
        case testResultCorrect:
            self.contentView.backgroundColor = [UIColor greenColor];
            break;
        case testResultWrong:
            self.contentView.backgroundColor = [UIColor redColor];
            break;
    }
    
    

}


@end
